package com.woniuxy.usersecurity.controller;

import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/lo")
public class JwtController {
    @Secured("ROLE_v")
    @RequestMapping("/los")
    public String login() {
        return "login";
    }
    @RequestMapping("/loss")
    @ResponseBody
    public String logins() {
        return "login";
    }

}

